/*
 * @Author: tangyuhui 317972442@qq.com
 * @Date: 2024-08-27 10:52:57
 * @LastEditors: tangyuhui 317972442@qq.com
 * @LastEditTime: 2024-09-11 14:22:02
 */

export interface Task {
    task: string;
    status: string;
    testLeader: string;
    frontEndLeader: string;
    backendLaborHour: string;
    testLaborHour: string;
    frontLaborHour: string;
    backEndLeader: string;
    testingTime: string;
    finishTestingTime: string;
    onlineTime: string;
    planOnlineTime: string;
    projectPositionOne:string;
    integrationTime:string;
    tag:string;
    [key: string]: string | number | boolean; // 添加字符串索引签名
  }

  export interface WorkHoursRecord{
    name: string,
    workHours: string|number
  }

   // 定义 Employee 的结构
   export interface Employee {
    workHour: number; // 工时
    taskList: Task[]; // 任务列表
  }
 export type EmployeeWorkRecord = Record<string, Employee>;
 
export interface EmployeeObject {
  name:string; // 姓名
  workHour: number; // 工时
  taskList: Task[]; // 任务列表
}

export const TAG_CONFIG = {
  ALL: "全部",
  NO_TEST_FINISH_DATE: "无测试完成日期",
  NO_DEPLOY_DATE: "无上线日期",
};


// 定义一个接口来描述返回对象的结构
export interface ICompletionStatus {
  finishTask: Task[]; // 一个字符串数组，表示完成的任务
  completion: number; // 一个数字，表示完成度
}